home *** CD-ROM | disk | FTP | other *** search
-
-
-
- aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr((((3333ddddmmmm)))) aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- alGetFrameNumber - Get the absolute sample frame number associated with a
- port
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////aaaauuuuddddiiiioooo....hhhh>>>>
-
- iiiinnnntttt aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr((((ccccoooonnnnsssstttt AAAALLLLppppoooorrrrtttt ppppoooorrrrtttt,,,, ssssttttaaaammmmpppp____tttt ****ffffnnnnuuuummmm))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _p_o_r_t expects the AAAALLLLppppoooorrrrtttt structure for the audio port for which you wish
- to know the sample frame number. This structure is the returned
- value of the aaaallllOOOOppppeeeennnnPPPPoooorrrrtttt((((3333ddddmmmm)))) call.
-
- _f_n_u_m expects a pointer to an unsigned 64-bit value which is to contain
- the resultant sample-frame number.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- Each audio device on a system counts how many sample frames have come in
- or gone out of that device. This count is known as the absolute sample
- frame number for that device. All audio ports connected to a given device
- share its absolute frame number as a common timeline.
-
- For an input port, aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr returns the absolute sample frame
- number associated with the next sample frame to be read from the port.
- If the port's queue is in an overflow state, the frame number will be
- constantly changing. The application should bring the port out of
- overflow state by reading or discarding sample frames, then re-examine
- the value of aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr.
-
- For an output port, aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr returns the absolute sample frame
- number associated with the next sample frame to be written to the port.
- If the port's queue is in an underflow state, the frame number will be
- constantly changing. The application should bring the port out of
- overflow state by writing samples into it, then re-examine the value of
- aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr.
-
- For ports transferring subcode data, the sample frame number returned by
- aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr corresponds to the sample frame number of the last audio
- data sample associated with the subcode frame.
-
- Practically speaking, aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr allows an application to precisely
- determine when a port's samples came into the machine or when they will
- go out, using the sample-frame counter as a timeline. To reference this
- timeline to the timelines for other media, or for other audio devices,
- the aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeTTTTiiiimmmmeeee(((()))) call should be used as well.
-
- See the manual page for alGetFrameTime for a code example illustrating
- how these two calls work.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr((((3333ddddmmmm)))) aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr((((3333ddddmmmm))))
-
-
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr returns 0. Otherwise
- aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr returns -1 and sets an error number which can be
- retrieved with oooosssseeeerrrrrrrroooorrrr((((3333CCCC)))).
-
- aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr can fail for the following reasons:
-
- AAAALLLL____BBBBAAAADDDD____PPPPOOOORRRRTTTT _p_o_r_t is invalid.
-
- AAAALLLL____BBBBAAAADDDD____NNNNOOOOTTTT____IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTEEEEDDDD the feature is not implemented on the given
- machine. aaaallllGGGGeeeettttFFFFrrrraaaammmmeeeeNNNNuuuummmmbbbbeeeerrrr is not implemented on
- Indigo R4K (IP20) systems.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- alOpenPort(3dm), alGetFrameTime(3dm), oserror(3C)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-